﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace APMLogVisualizer
{
    public partial class BigMessages : Form
    {
        private const int marginR = 20;
        private const int marginB = 40;
        public BigMessages()
        {
            InitializeComponent();
            TBMessage.Width = this.Width - marginR;
            TBMessage.Height = this.Height - marginB;
        }

        private void BigMessages_Resize(object sender, EventArgs e)
        {
            TBMessage.Width = this.Width - marginR;
            TBMessage.Height = this.Height - marginB;
        }
        int tmrCnt;
        private void timer1_Tick(object sender, EventArgs e)
        {
            //So we can NOT have all the text selected,  Lame, but the only way I could figure out how to do it...
            if (++tmrCnt == 5)
            {
                TBMessage.Enabled = true;
                timer1.Enabled = false;
            }
            else if(tmrCnt == 4)
            {
                TBMessage.Enabled = false;
            }
        }
    }
}
